// import axios from 'axios'
// const instance = axios.create({
//   baseURL: 'http://toutiao-app.itheima.net'
// })
import instance from '../utils/request'
// import { getToken } from '../utils/token'
const getuserInfo = () => {
  return instance({
    url: '/v1_0/user/profile',
    method: 'get'
    // headers: {
    //   Authorization: `Bearer ${getToken().token}`
    // }
  })
}
export { getuserInfo }
